﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SearchResult.ascx.cs" Inherits="Controls_Template_SearchResult" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%--<div id="content">
    <h2 style="text-align: center; color: Blue">
        Kết quả tìm kiếm
    </h2>
    <div id="divResult" class="" style="overflow: scroll">
        <asp:GridView ID="gridResult" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" GridLines="Both" OnRowCancelingEdit="gridResult_RowCancelling"
            OnRowCommand="gridResult_RowCommand" OnRowDeleting="gridResult_RowDeleting"
            OnRowEditing="gridResult_RowEditing" OnRowUpdating="gridResult_RowUpdating"
            DataKeyNames="id" Width="850px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField Visible="false">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lbIDHanhViChung" Text='<%#Eval("id") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nội dung">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbNoiDungHanhViChung" Width="150px" runat="server" Text='<%#Eval("noidung") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvNoiDungHanhViChung" ControlToValidate="tbNoiDungHanhViChung"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbNoiDungHanhViChung" runat="server" Text='<%#Eval("noidung") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thông tin">
                    <EditItemTemplate>
                        <asp:TextBox ID="tbThongTinHanhViChung" runat="server" Width="520px" Text='<%#Eval("thongtin") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="rfvThongTinHanhViChung" ControlToValidate="tbThongTinHanhViChung"
                            ValidationGroup="var1" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbThongTinHanhViChung" runat="server" Text='<%#Eval("thongtin") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Action" Visible="false">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnEditHanhViChung" Text="Edit" runat="server" CommandName="Edit"></asp:LinkButton><br />
                        <asp:LinkButton ID="btnDeleteHanhViChung" Text="Delete" runat="server" CommandName="Delete"></asp:LinkButton>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:LinkButton ID="btnUpdateHanhViChung" Style="color: White" Text="Update" runat="server"
                            CommandName="Update"></asp:LinkButton>
                        <asp:LinkButton ID="btnCancelHanhViChung" Style="color: White" Text="Cancel" runat="server"
                            CommandName="Cancel"></asp:LinkButton>
                    </EditItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <div id="divSubmitResetHanhViChung" runat="server" style="display: none">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lblNoiDung2" runat="server" Text="Nội dung"></asp:Label><br />
                        <asp:TextBox ID="tbNoiDung2" runat="server" Width="150px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblThongTin2" runat="server" Text="Thông tin"></asp:Label><br />
                        <asp:TextBox ID="tbThongTin2" runat="server" Width="520px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btnSubmitHanhViChung" runat="server" class="button" Text="Submit"
                OnClick="btnSubmitHanhViChung_Click" />
            <asp:Button ID="btnResetHanhViChung" runat="server" class="button" Text="Reset" OnClick="btnResetHanhViChung_Click" />
        </div>
    </div>
</div>--%>
